Defining User Settings

Description

Alpha Anywhere stores certain user settings (defined by the View > Settings command) in the system Registry database under the init key (which is relative to the root key.

Custom color definitions, which are also defined using the View > Settings command are not stored in the REGISTRY. These are stored in the Database library file. See A5.LOAD_USER_COLORS() and A5.SAVE_USER_COLORS() for information on using Xbasic to load and save custom colors.

The following example shows how you can set the Password field on the Email Settings tab of the View Settings dialog:

'initialize the UserSettings variable
UserSettings.dummy = ""
:registry.load_settings("Init", UserSettings)
UserSettings.email.client_password = "MyNewPassword"
:registry.save_settings("Init", UserSettings)

See Also